{layout  name="public:layout" /}

<div class="content">

    <div class="header">

        <h1 class="page-title">{$Think.lang.tianjiayonghu}</h1>
    </div>

    <ul class="breadcrumb">
        <li><a href="#">{$Think.lang.wangzhanguanli}</a> <span class="divider">/</span></li>


        <li class="active">{$Think.lang.tianjiayonghu}</li>
    </ul>

    <div class="container-fluid">
        <div class="row-fluid">

            <div class="btn-toolbar">
                &nbsp;
                <!--                <a href="#myModal" data-toggle="modal1" class="btn">Delete</a>-->
                <div class="btn-group">
                </div>
            </div>
            <div class="well" style="margin-top: -15px;">
                <!--                <ul class="nav nav-tabs">
                                    <li class="active"><a href="#home" data-toggle="tab">个人信息</a></li>
                                    <li><a href="#profile" data-toggle="tab">修改密码</a></li>
                                </ul>-->
                <div id="myTabContent" class="tab-content">
                    <div class="tab-pane active in" id="home">
                        <form id="form2" name="form" method="post" enctype="multipart/form-data" onsubmit="return false">


                            <label>{$Think.lang.yonghuzhanghao}：</label>
                            <input  name="u_username" type="text" value="" class="input-xlarge" style="width: 200px;">
                            <label>{$Think.lang.yonghumima}：</label>
                            <input  name="u_password" type="text" value="" class="input-xlarge" style="width: 200px;">
                            <label>{$Think.lang.querenmima}：</label>
                            <input  name="queren" type="text" value="" class="input-xlarge" style="width: 200px;">



                            <label>{$Think.lang.xuanzequanxian}：</label>
                            <select name="u_rid" id="DropDownTimezone" class="input-xlarge" style="width: 135px;">
                                <option value="">{$Think.lang.qingxuanze}</option>
                                {volist name="list" id="vo"}

                                <option value="{$vo.r_id}">{$vo.r_name}</option>
                                {/volist}
                            </select>
                            <div>
                                <button class="btn btn-primary save1"><i class="icon-save"></i> {$Think.lang.querenmima}</button>
                            </div>
                        </form>

                        <script>
                            $(".save1").click(function () {
                                var formData = new FormData(document.getElementById("form2"));//表单id
                                $.ajax({
                                    type: "post",
                                    url: "{:url('admin/Users/save')}",
                                    data: formData,
                                    async: false,
                                    cache: false,
                                    contentType: false,
                                    processData: false,
                                    dataType: 'json',
                                    success: function (data) {

                                        layer.load(1, {
                                            shade: [0.1, ''], //0.1透明度的白色背景
                                            time: 500
                                        });
                                        setTimeout(function () {
                                            layer.msg(data.message, {time: 1000}, function () {
                                               window.location.reload(); 
                                            });
                                        }, 500);

                                    }
                                })
                            })
                        </script>
                    </div>

                </div>

            </div>
            <footer>
                <hr>

                <p class="pull-right">Collect from <a href="#" title="网页模板" >sxddd</a></p>


                <p>&copy; 2019 <a href="#" >Portnine</a></p>
            </footer>

        </div>
    </div>

</div>